package org.ahuanlien.crm.mapper;

import org.ahuanlien.crm.domain.Dictionary;

import java.util.List;

public interface DictionaryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Dictionary record);

    int updateByPrimaryKey(Dictionary record);

    List<Dictionary> selectRootDictionary();

	List<Dictionary> selectDictionaryItemBySn(String sn);

	void updateByPrimaryKeySn(Dictionary record);

	void insertSn(Dictionary record);

	void deleteByPrimaryKeySn(Long id);

    Dictionary selectDictionaryItemById(Long id);
}